@mixin button-color($base, $border, $highlight: #000) {
  background-color: $base;
  border-color: $border;

  &:hover {
    background-color: mix($highlight, $base, 3%);

    &:active {
      background-color: mix($highlight, $base, 7%);
    }
  }
}

.button {
  @include button-color(#fff, #eee);
  @include remove-focus-ring;

  appearance: none;
  border-radius: 3px;
  border-style: solid;
  border-width: 1px;
  box-shadow: 0 3px 6px rgba(#000, 0.2);
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  font-size: $base-font-size;
  margin: 0;
  padding: ($base-font-size / 2) $base-font-size;
  position: relative;
  text-align: left;
  transition: box-shadow 0.1s linear;
  white-space: nowrap;

  &,
  &:active {
    color: inherit;
  }

  &:focus {
    box-shadow: 0 0 0 2px rgba($brand-primary, 0.5), 0 3px 6px rgba(#000, 0.2);
  }
}

.header {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  height: 0;
  overflow: hidden;
  padding: 50px 0 0 0;
  width: 50px;

  &:focus {
    box-shadow: none;
    @extend .button:hover;
  }
}
